if (typeof(Edushare) == "undefined") Edushare = { };
if (typeof(Edushare.AutoComplete) == "undefined") Edushare.AutoComplete = { };

Edushare.AutoComplete.getDataHandler = function(json){
	var returnData = json.split(";");
	var j= returnData.length;
};

Edushare.AutoComplete.update = function(){
	$(".wicketAutoCompleteComponent").each(function(){
		var attr = $(this).attr('url');
		$(this).autocomplete(attr,
			{
				formatItem: function(row){
					return row;
				},
				minChars:3,
				matchContains:true,
				multiple:true,
				multipleSeparator:";"
			});
	});	
};

$(document).ready(function(){
	Edushare.AutoComplete.update();
});